package edu.aysf;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Profile;

@SpringBootApplication
// 将服务注册到nacos,发现服务
@EnableDiscoveryClient
// 二、整个项目启用 feign(用于微服务之间的调用)
@EnableFeignClients
@Slf4j
//@ConditionalOnWebApplication(type = Type.REACTIVE)
public class PayApp {

    public static void main(String[] args) {
        SpringApplication.run(PayApp.class);
        System.out.println("Pay Application started");
        log.info("\nPay Application started");
//        log.info(System.getenv("SPRING_PROFILES_ACTIVE"));
    }

}


